<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			let userId = uni.getStorageSync("userId")
			if (!userId) {
				uni.reLaunch({
					url: '/pages/userHome/userHome',
					success() {
						
					}
				})
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	// @import 'static/css/animate.css';

	/*每个页面公共css */
	/*伸缩盒子模型*/
	page {
		background-color: #f1f2f6;
	}

	::-webkit-scrollbar {
		width: 0;
		height: 0;
		opacity: 0;
		color: transparent;
	}

	.logout {
		margin-top: 10px;
		background-color: #4880ff;
		color: #FFFFFF;
		border-radius: 100rpx;
		text-align: center;
		line-height: 80rpx;
	}

	.empty {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.font-wSix {
		font-weight: 600;
	}

	.dot_line {
		color: #4776e6;
	}

	.dot_off {
		color: #919191;
	}

	.line {
		width: 100%;
		height: 1px;
		background-color: #e6e6e6;
		transform: scaleY(0.5);
	}

	.box_radius {
		overflow: hidden;
		border-radius: 20rpx;
	}

	.textHidden {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;

	}

	.center {
		margin: 20rpx;
	}

	.pCenter {
		padding: 40rpx;
	}

	.box {
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: -webkit-flex;
		display: flex;
		-webkit-flex-wrap: nowrap;
		-ms-flex-wrap: nowrap;
		flex-wrap: nowrap;
	}

	/*从左至右*/
	.box-lr {
		-webkit-box-direction: normal;
		-webkit-box-orient: horizontal;
		-moz-flex-direction: row;
		-webkit-flex-direction: row;
		flex-direction: row;
	}

	/*从右至左*/
	.box-rl {
		-webkit-box-pack: end;
		-webkit-box-direction: reverse;
		-webkit-box-orient: horizontal;
		-moz-flex-direction: row-reverse;
		-webkit-flex-direction: row-reverse;
		flex-direction: row-reverse;
	}

	/*从上至下*/
	.box-tb {
		-webkit-box-direction: normal;
		-webkit-box-orient: vertical;
		-moz-flex-direction: column;
		-webkit-flex-direction: column;
		flex-direction: column;
	}

	/*从下至上*/
	.box-bt {
		-webkit-box-pack: end;
		-webkit-box-direction: reverse;
		-webkit-box-orient: vertical;
		-moz-flex-direction: column-reverse;
		-webkit-flex-direction: column-reverse;
		flex-direction: column-reverse;
	}

	/*主轴居中*/
	.box-pack-center {
		-webkit-box-pack: center;
		-moz-justify-content: center;
		-webkit-justify-content: center;
		justify-content: center;
	}

	/*主轴居左*/
	.box-pack-start {
		-webkit-box-pack: start;
		-moz-justify-content: flex-start;
		-webkit-justify-content: flex-start;
		justify-content: flex-start;
	}

	/*主轴居右*/
	.box-pack-end {
		-webkit-box-pack: end;
		-moz-justify-content: flex-end;
		-webkit-justify-content: flex-end;
		justify-content: flex-end;
	}

	/*主轴左右不留白*/
	.box-pack-between {
		-webkit-box-pack: justify;
		-moz-justify-content: space-between;
		-webkit-justify-content: space-between;
		justify-content: space-between;
	}

	/*主轴左右留白*/
	.box-pack-around {
		-moz-justify-content: space-around;
		-webkit-justify-content: space-around;
		justify-content: space-around;
	}

	/*交叉轴居中对齐*/
	.box-align-center {
		-webkit-box-align: center;
		-moz-align-items: center;
		-webkit-align-items: center;
		align-items: center;
	}

	/*交叉轴居左对齐*/
	.box-align-start {
		-webkit-box-align: start;
		-moz-align-items: start;
		-webkit-align-items: flex-start;
		align-items: flex-start;
	}

	/*交叉轴居右对齐*/
	.box-align-end {
		-webkit-box-align: end;
		-moz-align-items: end;
		-webkit-align-items: flex-end;
		align-items: flex-end;
	}

	/**单个指定的子元素自定义对齐方式，可以不同于其他子元素对齐方式**/

	/**指定子元素居中对齐**/
	.self-align-center {
		align-self: center;
		-webkit-align-self: center;
		margin: 0 auto;
	}

	/**指定子元素顶部对齐**/
	.self-align-start {
		align-self: flex-start;
		-webkit-align-self: flex-start;
	}

	/**指定子元素底部对齐**/
	.self-align-end {
		align-self: flex-end;
		-webkit-align-self: flex-end;
	}

	/**指定子元素拉伸**/
	.self-align-stretch {
		align-self: stretch;
		-webkit-align-self: stretch;
	}

	/**子元素换行**/
	.box-wrap {
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
	}

	/**子元素不换行**/
	.box-nowrap {
		-webkit-flex-wrap: nowrap;
		-ms-flex-wrap: nowrap;
		flex-wrap: nowrap;
	}

	/*允许子元素伸展（1倍）*/
	.flex {
		-moz-flex-grow: 1;
		-webkit-flex-grow: 1;
		flex-grow: 1;
		/*如果值是2 那么当前元素就是其他元素宽的2倍了*/
	}

	/*允许子元素收缩(1倍)*/
	.shrink {
		-moz-flex-shrink: 1;
		-webkit-flex-shrink: 1;
		flex-shrink: 1;
	}

	/**水平居中*/
	.box-center-center {
		display: -webkit-box;
		-webkit-box-align: center;
		-webkit-box-pack: center;
		display: -moz-box;
		-moz-box-align: center;
		-moz-box-pack: center;
		text-align: center;
	}

	.mar_def {
		margin: 0 20rpx;
	}

	.mar_big {
		margin: 0 40rpx;
	}

	.mar_top {
		margin-top: 20rpx;
	}

	.mar_top_big {
		margin-top: 40rpx;
	}

	.mar_bot {
		margin-bottom: 20rpx;
	}

	.mar_bot_big {
		margin-bottom: 40rpx;
	}

	.pad_def {
		padding: 0 20rpx;
	}

	.pad_big {
		padding: 0 40rpx;
	}

	.pad_top {
		padding-top: 20rpx;
	}

	.pad_top_big {
		padding-top: 40rpx;
	}

	.pad_bot {
		padding-bottom: 20rpx;
	}

	.pad_bot_big {
		padding-bottom: 40rpx;
	}
</style>
